﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;

namespace WebApplication1
{
    public partial class regist : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void registButton_Click(object sender, EventArgs e)
        {
            string strConn = "data source=KOJANGHYUN\\SQLEXPRESS ;initial catalog=ACADEMY;user id=kim;password=kim123";

            SqlConnection conn = new SqlConnection(strConn);

            string query1 = "Insert into dbo.regist2 values (" + "\'" + UserName.Text + "\'" + "," + "\'" + Password.Text + "\'" + "," +
                "\'" + Email.Text + "\'" + ")";

            conn.Open();

            SqlCommand comm = new SqlCommand(query1, conn);

            comm.ExecuteNonQuery();

            conn.Close();

        }
    }
   
}